package cn.e4j.modular.api.service;


import cn.e4j.core.dto.impl.Dto;
import cn.e4j.core.util.DateUtils;
import cn.e4j.modular.api.mapper.WtjdMapper;
import cn.e4j.modular.api.mapper.WttdMapper;
import cn.e4j.modular.crm.entity.EsaaT;
import cn.e4j.modular.system.entity.SysUser;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

@Service
public class WtjdService {

    @Autowired
    WtjdMapper wtjdMapper;

    /**
     * 获取问题报单
     * @param inDto
     */
    public List<Dto> getEsaaList(Page<Object> page, Dto inDto) {
        return wtjdMapper.getEsaaList(page, inDto);
    }

    /**
     * 获取外部用户的归属交易对象
     * @param inDto
     */
    public Dto getGwaaData(Dto inDto){
        return wtjdMapper.getGwaaData(inDto);
    }

    /**
     * 获取当前登录用户是否是主要联系人
     * @param inDto
     */
    public Dto getEsabData(Dto inDto){
        return wtjdMapper.getEsabData(inDto);
    }

}
